/**
 *  离职交接套件
 */
const handoverChildren = [
    {
        label: '离职员工',
        formId: 'leaveEmployee',
        key: 'leaveEmployee',
        tag: 'ContactsInput',
        rules: [
            {
                required: true,
                message: ' '
            }
        ],
        options: {}
    },
    {
        tag: 'Title',
        key: 'workTitle',
        formId: 'workTitle',
        options: {},
        titleValue: '工作交接',
        rules: [],
        noValue: true
    },
    {
        label: '工作交接内容',
        formId: 'workCountersign',
        key: 'workCountersign',
        tag: 'Table',
        rules: [
            {
                required: true,
                message: '请输入工作交接信息'
            }
        ],
        options: {
            disabled: true
        }
    },
    {
        label: '工作交接备注',
        tag: 'TextArea',
        key: 'workRemark',
        formId: 'workRemark',
        rules: [],
        options: {
            disabled: true
        }
    },
    {
        tag: 'Title',
        key: 'financeTitle',
        formId: 'financeTitle',
        options: {},
        titleValue: '财务部门',
        rules: [],
        noValue: true
    },
    {
        label: '财务交接内容',
        formId: 'financeCountersign',
        key: 'financeCountersign',
        tag: 'Table',
        rules: [
            {
                required: true,
                message: '必须选择处理情况'
            }
        ],
        options: {
            disabled: true
        }
    },
    {
        label: '财务部门备注',
        tag: 'TextArea',
        key: 'financeRemark',
        formId: 'financeRemark',
        rules: [],
        options: {
            disabled: true
        }
    },
    {
        tag: 'Title',
        key: 'hrTitle',
        formId: 'hrTitle',
        options: {},
        titleValue: '人事部门',
        rules: [],
        noValue: true
    },
    {
        label: '剩余假期结算方式',
        key: 'turnoverCommonYear',
        formId: 'turnoverCommonYear',
        tag: 'Vacation',
        rules: [
            {
                required: true,
                message: '请选择剩余结算方式'
            }
        ],
        options: {
            disabled: true,
            placeholder: '剩余假期结算方式',
            discountingTip: true
        }
    },
    {
        label: '公积金/社保停缴月份',
        tag: 'Select',
        key: 'socialSecurity',
        formId: 'socialSecurity',
        dataList: [
            {
                label: '1月',
                value: 1
            },
            {
                label: '2月',
                value: 2
            },
            {
                label: '3月',
                value: 3
            },
            {
                label: '4月',
                value: 4
            },
            {
                label: '5月',
                value: 5
            },
            {
                label: '6月',
                value: 6
            },
            {
                label: '7月',
                value: 7
            },
            {
                label: '8月',
                value: 8
            },
            {
                label: '9月',
                value: 9
            },
            {
                label: '10月',
                value: 10
            },
            {
                label: '11月',
                value: 11
            },
            {
                label: '12月',
                value: 12
            }
        ],
        options: {
            placeholder: '请选择',
            disabled: true
        },
        rules: [
            {
                required: false,
                message: '请选择'
            }
        ]
    },
    {
        label: '折算金额',
        key: 'vacationAmount',
        formId: 'vacationAmount',
        tag: 'InputNumber',
        options: {
            disabled: true,
            placeholder: '请输入',
            max: 1000000000,
            min: -1000000000
        },
        rules: [
            {
                required: true,
                message: '请输入'
            }
        ]
    },
    {
        label: '人事部门备注',
        tag: 'TextArea',
        formId: 'hrRemark',
        key: 'hrRemark',
        rules: [],
        options: {
            disabled: true
        }
    },
    {
        tag: 'Title',
        key: 'assetTitle',
        formId: 'assetTitle',
        options: {},
        titleValue: 'IT 部门',
        rules: [],
        noValue: true
    },
    {
        label: 'IT交接内容',
        formId: 'assetCountersign',
        key: 'assetCountersign',
        tag: 'Table',
        rules: [
            {
                required: true,
                message: '必须选择处理情况'
            }
        ],
        options: {
            disabled: true
        }
    },
    {
        label: 'IT 部门备注',
        tag: 'TextArea',
        formId: 'assetRemark',
        key: 'assetRemark',
        rules: [],
        options: {
            disabled: true
        }
    },
    {
        tag: 'Title',
        key: 'officeTitle',
        formId: 'officeTitle',
        options: {},
        titleValue: '行政部门',
        rules: [],
        noValue: true
    },
    {
        label: '行政交接内容',
        formId: 'officeDepotCountersign',
        key: 'officeDepotCountersign',
        tag: 'Table',
        rules: [
            {
                required: true,
                message: '必须选择处理情况'
            }
        ],
        options: {
            disabled: true
        }
    },
    {
        label: '行政部门备注',
        tag: 'TextArea',
        formId: 'officeDepoRemark',
        key: 'officeDepoRemark',
        rules: [],
        options: {
            disabled: true
        }
    }
];

export const handoverControl = {
    label: '离职交接',
    cmpType: 'custom',
    formId: '',
    key: 'Handover',
    tag: 'Handover',
    tagIcon: '',
    formStyle: true,
    children: handoverChildren
};
